<form id="pagerForm" method="post" action="">
    <input type="hidden" name="pageNum" value="{$pageNum}" />
	<input type="hidden" name="numPerPage" value="{$numPerPage}" />
	<input type="hidden" name="orderField" value="{$orderField}" />
	<input type="hidden" name="orderDirection" value="{$orderDirection}" />
	<input type="hidden" name="keywords" value="{$keywords}" />
	<input type="hidden" name="sfield" value="{$sfield}" />
	<input type="hidden" name="platform" value="{$platform}" />
	<input type="hidden" name="sfield_name" value="u.id,u.username,u.mobile" />
</form>
<div class="pageHeader">
    <form rel="pagerForm" onsubmit="return navTabSearch(this);" action="{:U('Supplier/quotation')}" method="post">
        <input type="hidden" name="m" value="{$module_name}" /><input type="hidden" name="a" value="{$action_name}" />
        <div class="searchBar">
            <ul class="searchContent">
                <li style="width:210px;">
                    <label style="width:60px;">
                        关键字：
                    </label>
                    <input type="text" name="keywords" value="{$keywords}" style="width:120px;"/>
                </li>
                <li style="width:80px;">
				<select name="sfield" class="combox">
					<option value="all" {if $wherefields=='all'}selected="selected"{/if}>全部</option>
					<option value="product_name" {if $wherefields=='product_name'}selected="selected"{/if}>商品名称</option>
					<option value="mer_productid" {if $wherefields=='mer_productid'}selected="selected"{/if}>供应商产品ID</option>
				</select>
				<input type="hidden" name="sfield_name" value="id,username,mobile" />
                </li>
                <div class="buttonActive">
                    <div class="buttonContent">
                        <button type="submit">
                            检索
                        </button>
                    </div>
                </div>
            </ul>
        </div>
    </form>
</div>
<div class="pageContent">
    <div class="panelBar">
       <!-- <ul class="toolBar">
            <php>
                $param=array();
                if($pid){
                }
            </php>
            <li>
                <a class="add" href="{:U('User/add',$param)}" target="dialog" width="580" height="350" rel="User_add"><span>添加用户</span></a>
            </li>
            <li><a class="edit" href="{:U('User/edit')}&id={sid_dv}" target="dialog" width="580" height="350" warn="请选择一个用户"><span>修改用户信息</span></a></li>
            <li>
                <a class="icon" href="{:U('User/detail')}&id={sid_dv}" target="dialog" height="500" warn="请选择一个用户"><span>查看用户信息</span></a>
            </li>
            <li>
                <a class="icon" href="javascript:$.printBox('user_list')"><span>打印</span></a>
            </li>
        </ul>-->
    </div>
    <div id="user_list">
        <table class="table" layoutH="113">
            <thead>
                <tr>
					<th width="60" orderField="id" {if $orderField=='id'}class="{$orderDirection}"{/if}>
					ID
					</th>
					<!--<th width="100" orderField="username" {if $orderField=='username'}class="{$orderDirection}"{/if}>
					订单ID
					</th>-->
					<th width="100" orderField="productid" {if $orderField=='productid'}class="{$orderDirection}"{/if}>
					产品ID
					</th>
					<th width="150" orderField="mer_productid" {if $orderField=='mer_productid'}class="{$orderDirection}"{/if}>
					供应商产品ID
					</th>
					<!--<th width="150" orderField="status" {if $orderField=='status'}class="{$orderDirection}"{/if}>
					订单编号
					</th>-->
					<th width="300" orderField="product_name" {if $orderField=='product_name'}class="{$orderDirection}"{/if}>
					商品名称
					</th>
					<th width="200" orderField="oprice" {if $orderField=='oprice'}class="{$orderDirection}"{/if}>
					销价
					</th>
					<th width="200" orderField="price" {if $orderField=='price'}class="{$orderDirection}"{/if}>
					报价
					</th>
					<th width="100" orderField="nums" {if $orderField=='nums'}class="{$orderDirection}"{/if}>
					数量
					</th>
					<th width="100" orderField="mer_userid" {if $orderField=='mer_userid'}class="{$orderDirection}"{/if}>
					用户ID
					</th>
					<th width="180" orderField="addtime" {if $orderField=='addtime'}class="{$orderDirection}"{/if}>
					添加时间
					</th>
					<!--<th width="150">
					状态
					</th>-->
	
                </tr>
            </thead>
            <tbody>
                <volist name="list" id="vo">
                    <tr target="sid_dv" rel="{$vo['id']}">
                        <td>
                            {$vo['id']}
                        </td>
                        <!--<td>
                            {$vo['order_id']} 
                        </td>-->
                        <td>
                            {$vo['productid']} 
                        </td>
					    <td>
                            {$vo['mer_productid']} 
                        </td>
                        <!--  <td>
                            {$vo['sn']} 
                        </td>-->
                        <td>
                            {$vo['product_name']} 
                        </td>
                         <td>
                            {$vo['oprice']/100}
                        </td>
					   <td>
                            {$vo['price']}
                        </td>
						 <td>
                            {$vo['nums']} 
                        </td>
						 <td>
                        <a class="add" style="color:blue;" href="{:U('Supplier/sel_user',array('id'=>$vo['mer_userid']))}" target="dialog" width="580" height="350" rel="User_add">{$vo['mer_userid']}</a> 
                        </td>
                        <td>
                            {$vo['addtime']}
                        </td>
						 <!--<td>
                            {$vo['status']}
                        </td>-->
                    </tr>
                </volist>
            </tbody>
        </table>
    </div>
<include file="Index:pages" />
</div>
